package com.four.order.dao;
import java.util.List;

import com.four.order.pojo.Order;


public interface OrderDao {
	/** 查询所有订单信息 */
	public List<Order> selectAll();
	/** 根据用订单查询订单信息 */
	public Order selectByName(String name);
	
	/** 根据订单编号查询订单信息 */
public Order selectById(long id);
	
	/** 添加订单 */
	public int addOrder(long id,int name,String oaddress,String createtime,String ooldprice,String onowprice,String count,String endtime,String oflag,String oremark);
	
	/** 更新订单 */
	public int updateOrder(long id,int name,String oaddress,String createtime,String ooldprice,String onowprice,String count,String endtime,String oflag,String oremark);
	
	/** 删除订单 */
	public int deleteOrder(long id);

}